package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.ExpCharacterMapper;
import com.ruoyi.system.domain.ExpCharacter;
import com.ruoyi.system.service.IExpCharacterService;

/**
 * 学员信息Service业务层处理
 * 
 * @author 马坚
 * @date 2023-06-20
 */
@Service
public class ExpCharacterServiceImpl implements IExpCharacterService 
{
    @Autowired
    private ExpCharacterMapper expCharacterMapper;

    /**
     * 查询学员信息
     * 
     * @param chaID 学员信息主键
     * @return 学员信息
     */
    @Override
    public ExpCharacter selectExpCharacterByChaID(String chaID)
    {
        return expCharacterMapper.selectExpCharacterByChaID(chaID);
    }

    /**
     * 查询学员信息列表
     * 
     * @param expCharacter 学员信息
     * @return 学员信息
     */
    @Override
    public List<ExpCharacter> selectExpCharacterList(ExpCharacter expCharacter)
    {
        return expCharacterMapper.selectExpCharacterList(expCharacter);
    }

    /**
     * 新增学员信息
     * 
     * @param expCharacter 学员信息
     * @return 结果
     */
    @Override
    public int insertExpCharacter(ExpCharacter expCharacter)
    {
        return expCharacterMapper.insertExpCharacter(expCharacter);
    }

    /**
     * 修改学员信息
     * 
     * @param expCharacter 学员信息
     * @return 结果
     */
    @Override
    public int updateExpCharacter(ExpCharacter expCharacter)
    {
        return expCharacterMapper.updateExpCharacter(expCharacter);
    }

    /**
     * 批量删除学员信息
     * 
     * @param chaIDs 需要删除的学员信息主键
     * @return 结果
     */
    @Override
    public int deleteExpCharacterByChaIDs(String[] chaIDs)
    {
        return expCharacterMapper.deleteExpCharacterByChaIDs(chaIDs);
    }

    /**
     * 删除学员信息信息
     * 
     * @param chaID 学员信息主键
     * @return 结果
     */
    @Override
    public int deleteExpCharacterByChaID(String chaID)
    {
        return expCharacterMapper.deleteExpCharacterByChaID(chaID);
    }
}
